package com.cnap.multiclouldmgmt.model.microSvc.alg;

import com.cnap.multiclouldmgmt.model.BasicValueModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 {
 "past_data": [ //过去7天数据
 {"index":1686886277000, "value":30}, //时间戳为ms，value为百分比数
 {"index":1686886278000, "value":30},
 {"index":1686886279000, "value":30},
 {"index":1686886287000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":50}
 ],
 "predict_data":[//预测7天数据
 {"index":1686886277000, "value":30},
 {"index":1686886278000, "value":30},
 {"index":1686886279000, "value":30},
 {"index":1686886287000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":40},
 {"index":1686886277000, "value":50}
 ],
 "alarm_thresh":{
 "low_upper_limit": 50, //低风险阈值上限，表示低风险为0-50%
 "middle_upper_limit":70   //中风险阈值上限，表示中风险为50%-70%
 //高风险自行补充，为70-100%
 },
 "is_present":true //True表示需要展示预警线，False表示无需展示
 }
 **/
@ApiModel(value = "com.cnap.multiclouldmgmt.model.microSvc.alg.ForececastRiskCpuModel",description = "cpu风险预测")
public class ForececastRiskCpuModel {

    @ApiModelProperty(value = "past_data")
    private List<IndexValueModel> past_data;

    @ApiModelProperty(value = "predict_data")
    private List<IndexValueModel> predict_data;


    @ApiModelProperty(value = "alarm_thresh")
    private AlarmTheshModel alarm_thresh;

    @ApiModelProperty(value = "is_present")
    private String is_present;

    /**
     * get
     *
     * @return Past_data
     */
    public List<IndexValueModel> getPast_data() {
        return past_data;
    }

    /**
     * set
     *
     * @param past_data past_data
     */
    public void setPast_data(List<IndexValueModel> past_data) {
        this.past_data = past_data;
    }

    /**
     * get
     *
     * @return Predict_data
     */
    public List<IndexValueModel> getPredict_data() {
        return predict_data;
    }

    /**
     * set
     *
     * @param predict_data predict_data
     */
    public void setPredict_data(List<IndexValueModel> predict_data) {
        this.predict_data = predict_data;
    }

    /**
     * get
     *
     * @return Alarm_thresh
     */
    public AlarmTheshModel getAlarm_thresh() {
        return alarm_thresh;
    }

    /**
     * set
     *
     * @param alarm_thresh alarm_thresh
     */
    public void setAlarm_thresh(AlarmTheshModel alarm_thresh) {
        this.alarm_thresh = alarm_thresh;
    }

    /**
     * get
     *
     * @return Is_present
     */
    public String getIs_present() {
        return is_present;
    }

    /**
     * set
     *
     * @param is_present is_present
     */
    public void setIs_present(String is_present) {
        this.is_present = is_present;
    }
}
